<% content_for :title, "Login user" %>

<h1>Login user</h1>
<%= form_tag sessions_path, method:"post" do %>

  <div>
    <label for="name">用户名：</label>
    <input type="text" name="name" id="form_name" placeholder="用户名...">
  </div>

  <div>
    <label for="password"></label>
    <input type="password" name="password" id="form_password" placeholder="密码...">
  </div>

  <div>
    <input type="submit" value="登录">
    <%= link_to "新建", new_user_path %>
  </div>
<% end -%>

<br>

<div>
  <%= link_to "Back to users", users_path %>
</div>